<template>
  <div class="item" @click="go">
    <div class="gs">
      <div class="nr">&emsp;&emsp;招标项目: &nbsp;<span class="nr_right">{{ item.projectName }}</span></div>
      <div class="nr">&emsp;&emsp;招标公司: &nbsp;<span class="nr_right">{{ item.name }}</span></div>
      <div class="nr">&emsp;&emsp;&emsp;&emsp;法人: &nbsp;<span class="nr_right">{{ item.peopleName }}</span></div>
      <div class="nr">&emsp;&emsp;联系电话: &nbsp;<span class="nr_right">{{ item.phone }}</span></div>
      <div class="nr">&emsp;&emsp;项目报价: &nbsp;<span class="nr_right">{{ item.price }} 万元</span></div>
      <div class="nr">招标开始时间: &nbsp;<span class="nr_right">{{ item.createTime }}</span></div>
      <div class="nr">招标结束时间: &nbsp;<span class="nr_right">{{ item.endTime }}</span></div>
      <slot class="nr"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ZbItemIndex',
  props: {
    item: {
      type: Object
    }
  },
  data () {
    return {
    }
  },
  methods: {
    go () {
      const url = this.$route.params.id
      if (url === undefined) {
        this.$router.push(`/zhaoBDetail/${this.item.id}`)
      }
      return null
    }
  }
}
</script>

<style lang="less" scoped>

</style>
